package com.wtone.platform.gat.images.gat.message;

import com.wtone.platform.gat.images.gat.model.MotorVehicle;
import com.wtone.platform.gat.images.gat.model.SubscribeNotification;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @Author: aiLin
 * @Date: 2020/10/8 9:34
 * @desc: 订阅通知对象工具类
 */
@Slf4j
public class SubscribeNotificationCore {

    /***
     * 获取订阅通知对象，详细信息解析下载
     * @param subscribeNotifications
     */
    public static void getSubscribeNotification(List<SubscribeNotification> subscribeNotifications){
        if(subscribeNotifications!=null && subscribeNotifications.size()>0){
            for(int i=0;i<subscribeNotifications.size();i++){
                SubscribeNotification subscribeNotification = subscribeNotifications.get(i);
                if(subscribeNotification==null){
                    continue;
                }
                List<MotorVehicle> motorVehicles = subscribeNotification.getMotorVehicleObjectList().getMotorVehicles();
                MotorVehicleCore.getMotorVehicle(motorVehicles);
            }
        }
    }
}
